package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbHandlerMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbHandler;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-09-20 19:44
 **/

@Repository
public class TbHandlerDao {
    @Autowired
    TbHandlerMapper tbHandlerMapper;

    public TbHandler selectByPrimaryKey(Long id) {
        return tbHandlerMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbHandler record) {
        return tbHandlerMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbHandler record) {
        return tbHandlerMapper.insertSelective(record);
    }

    public List<TbHandler> selectListForPage(TbHandler where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbHandlerMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbHandler where, TbCustomWhere mapWhere) {
        return tbHandlerMapper.selectListForPageCount(where, mapWhere);
    }
}
